package com.geek.factory.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.geek.factory.entity.TContract;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-06-21
 */
public interface TContractService extends IService<TContract> {

    //添加检查组
    @Transactional
    boolean save(Integer[] UserIds, TContract tContract);

        // 新增：导入合同文件
    boolean upload(MultipartFile excelFile) throws IOException;

    void downloadTemplate(HttpServletResponse response) throws IOException;

    void generatePdf(Integer contractId, javax.servlet.http.HttpServletResponse response) throws Exception;
}
